home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / dviselect / verser.h < prev   
Encoding:
C/C++ Source or Header  |  1989-06-16  |  2.4 KB  |  69 lines

  1. /*
  2.  * Copyright (c) 1987 University of Maryland Department of Computer Science.
  3.  * All rights reserved.  Permission to copy for any purpose is hereby granted
  4.  * so long as this copyright notice remains intact.
  5.  */
  6.  
  7. /* verser globals */
  8.  
  9. /*
  10.  * Verser was rewritten based on another program by the same name.
  11.  * The original program was written by Janet Incerpi of Brown University
  12.  * and was for the original version of TeX which also used a different kind
  13.  * of font file.  It was modified at the University of Washington by
  14.  * Richard Furuta (bringing it up to TeX82 and PXL files) and Carl Binding
  15.  * (adding horizontal printing).  I then tore it to shreds and rebuilt
  16.  * it; the new one is much faster (though less portable:  it has inline
  17.  * assembly code in various critical routines).
  18.  *
  19.  * Chris Torek, 20 May 1984, University of Maryland CS/EE
  20.  *
  21.  * The program has since gone through much revision.  The details are
  22.  * rather boring, but there is one important point:  The intermediate
  23.  * file format has changed.
  24.  */
  25.  
  26. /*
  27.  * Version number.  Increment this iff the intermediate file format
  28.  * makes an incompatible change.  This number may not be > 127.
  29.  */
  30. #define    VERSION    1        /* was version 0 */
  31.  
  32. #ifndef ACCOUNT_FILE
  33. /*
  34. #define ACCOUNT_FILE "/usr/adm/vpacct"    /* if defined, the name of
  35.                        the paper accounting file */
  36. #endif    ACCOUNT_FILE
  37.  
  38. #ifndef VERSATEC_FILE
  39. #define VERSATEC_FILE "/dev/vp0"/* the name of the Versatec */
  40. #endif    VERSATEC_FILE
  41.  
  42. #define NFONTS     100        /* max number of fonts */
  43.  
  44. #define FONTSHIFT 14        /* font shift in fcp's */
  45. #define CHARSHIFT  7        /* char shift in fcp's */
  46. #define CHARMASK 127        /* char mask in fcp's - 128 chars/font */
  47. #define PARTMASK 127        /* part mask in fcp's */
  48.  
  49. #define    ROWS    400        /* lines in buffer (200 lines/inch) */
  50. #define    COLUMNS    264        /* 2112 bits per line / 8 bits per char */
  51. #define MIN_OUT  30        /* MIN_OUT lines in buffer causes output
  52.                    to be written right away */
  53. #define MaxCharHeight (ROWS-1)    /* max bit height of a single char or rule */
  54. #define MaxPageHeight  1685    /* max bit height of a page */
  55. #define MaxPageWidth   2112    /* max bit width  of a page */
  56. #define FFMargin     39    /* vert. offset after a formfeed (bits) */
  57.  
  58. #define DefaultMaxDrift 2
  59.  
  60. #define DefaultLeftMargin   150
  61. #define MinimumLeftMargin   10
  62. #define DefaultTopMargin    200
  63. #define MinimumTopMargin    10
  64. #define DefaultBottomMargin 200
  65.  
  66. #ifndef min
  67. #define min(a,b) ((a) < (b) ? (a) : (b))
  68. #endif    min
  69.